package com.example.design.filter.filter;


import com.example.design.filter.ScheduleShiftFilter;
import com.example.design.filter.context.PreSaleScheduleContext;
import com.example.design.filter.context.ScheduleContext;
import com.example.design.filter.context.ScheduleUser;

/**
 * 白班班次是否有剩余
 */
public class DayShiftNumFilter implements ScheduleShiftFilter {

    public static final ScheduleShiftFilter instance = new DayShiftNumFilter();

    @Override
    public boolean filter(ScheduleContext context, ScheduleUser user) {
        return ((PreSaleScheduleContext) context).getDayShiftNum() > 0;
    }

}
